/**
 * Created by Wenda Fang on 14-1-5.
 * The file is used to validate the form including signin and adding new records
 */
function InputCheck(RegForm)
{
  if (RegForm.username.value == "")
  {
    alert("请输入用户名");
    RegForm.username.focus();
    return (false);
  }
  if (RegForm.password.value == "")
  {
    alert("请输入密码");
    RegForm.password.focus();
    return (false);
  }
}